<?php


namespace Core\Exception;
class BusinessException extends BaseException
{
   public function setMessageArr($messageArr){
       $result = '';

       foreach ($messageArr as $key => $messageGroup) {
           $anInputErr = $key.':';
           foreach ($messageGroup as $aMessage) {
               $anInputErr = $anInputErr.$aMessage.' | ';
           }

           $result = $result . $anInputErr.'. ';
       }

       $this->message =  $result;
   }
}
